(function () {
    var serverData = {};
    var serverTable;
    
//    //查询
//    jQuery('#query_btn').on('click',function(){
//    	var a = jQuery('.exdeQry');
//    	for(var i=0;i<a.length;i++){
//    		var a_ = a[i].value;
//    		var b_ = a[i].name;
//    		var textName_ = b_.substring(1,b_.length);
//    		if(a_ != ""){
//    			if(textName_.indexOf("n") == 0 && isNaN(a_)){
//    				continue;
//    			}else{
//    				a[i].value = "";
//    			}
//    			serverData[b_] = a_;
//    		}
//    	}
//    	serverTable.draw();
//    });
//    //清空
//    jQuery('#clear_btn').on('click',function(){
//    	var a = jQuery('.exdeQry');
//    	for(var i=0;i<a.length;i++){
//    		var a_ = a[i].value;
//    		var b_ = a[i].name;
//    		if(a_ != ""){
//    			a[i].value = "";
//    		}
//    	}
//    });
    
    jQuery(document).ready(function () {
        serverTable = jQuery('#dataTable').DataTable({
            "serverSide" : true,
            "ordering" : false,
            "ajax" : {
                "dataType" : "json",
                "type" : "post",
                "cache" : false,
                "url" : window.rootPath
                        + '/ui/payment-view/getpage',
                "data" : function(d) {
                    return $.extend({}, d,
                            serverData);
                }
            },
            "columns" : [{
                            data : null,
                            defaultContent : ""// 排序   1
                        },
                        {
                            data : 'cOrderUnit',
    		                render:function(data,type,full,meta){
    		                	if(data == null || data == undefined || data == ""){
    								return data;
    							}else{
    								return (data.length > 5) ? '<font title="'+data+'">'+data.substring(0,5)+'...'+'</font>' : data;
    							}
    						}
                        },
                        {
                        	data : 'state'
                        },
                        {
                            data : 'nTotalSum'//合同总金额 3
                        },
                        {
                            data : 'cProjectName',
    		                render:function(data,type,full,meta){
    		                	if(data == null || data == undefined || data == ""){
    								return data;
    							}else{
    								return (data.length > 5) ? '<font title="'+data+'">'+data.substring(0,5)+'...'+'</font>' : data;
    							}
    						}
                        },
                        {
                        	data : 'contractType'//合同类型 4
                        },
                        {
                            data : 'cSupplierCode',
    		                render:function(data,type,full,meta){
    		                	if(data == null || data == undefined || data == ""){
    								return data;
    							}else{
    								return (data.length > 5) ? '<font title="'+data+'">'+data.substring(0,5)+'...'+'</font>' : data;
    							}
    						}
                        },
                        {
                            data : 'cDemanderCode',
    		                render:function(data,type,full,meta){
    		                	if(data == null || data == undefined || data == ""){
    								return data;
    							}else{
    								return (data.length > 5) ? '<font title="'+data+'">'+data.substring(0,5)+'...'+'</font>' : data;
    							}
    						}
                        },
                        {
                            data : 'cProductKind',
    		                render:function(data,type,full,meta){
    		                	if(data == null || data == undefined || data == ""){
    								return data;
    							}else{
    								return (data.length > 5) ? '<font title="'+data+'">'+data.substring(0,5)+'...'+'</font>' : data;
    							}
    						}
                        },
                        {
                            data : 'cCheckKind',
    		                render:function(data,type,full,meta){
    		                	if(data == null || data == undefined || data == ""){
    								return data;
    							}else{
    								return (data.length > 5) ? '<font title="'+data+'">'+data.substring(0,5)+'...'+'</font>' : data;
    							}
    						}
                        },
                        {
                            data : 'cDutyOfficer'//责任人 9
                        },
                        {
                            data : 'cOrderArea'//片区 10
                        },
                        {
                            data : 'cPayType',
    		                render:function(data,type,full,meta){
    		                	if(data == null || data == undefined || data == ""){
    								return data;
    							}else{
    								return (data.length > 10) ? '<font title="'+data+'">'+data.substring(0,10)+'...'+'</font>' : data;
    							}
    						}
                        },
                        {
                            data : 'dSignedDate',//签订日期 12
                            render: function (data, type, full, meta) {
                                if (data)
                                    return moment(data).format('YYYY/MM/DD HH:mm');
                                else
                                    return '';
                            }
                        },
                        {
                            data : 'dDeliveryDate',//交货日期 13
                            render: function (data, type, full, meta) {
                                if (data)
                                    return moment(data).format('YYYY/MM/DD HH:mm');
                                else
                                    return '';
                            }
                        },
                        {
                            data : 'dLateestPayCheckDate',//最近开票日期 14
                            render: function (data, type, full, meta) {
                                if (data)
                                    return moment(data).format('YYYY/MM/DD HH:mm');
                                else
                                    return '';
                            }
                        },
                        {
                            data : 'nWQPWDQYSSum'//[未启票未到期应收] 15
                        },
                        {
                            data : 'nYQPWDQYSSum'//[已启票未到期应收] 16
                        },
                        {
                            data : 'nWDQYSYFKSum'//[未到期应收预付] 17
                        },
                        {
                            data : 'nWDQYSJDKSum'//[未到期应收进度] 18
                        },
                        {
                            data : 'nWDQYSFHKSum'//[未到期应收发货] 19
                        },
                        {
                            data : 'nWDQYSYSKSum'//[未到期应收验收] 20
                        },
                        {
                            data : 'nWDQYSTSKSum'//[未到期应收调试] 21
                        },
                        {
                            data : 'nWDQYSZBKSum'//[未到期应收质保] 22
                        },
                        {
                            data : 'nWDQYSYFSum'//[未到期应收运费] 23
                        },
                        {
                            data : 'nNowMonthYSYFKSum'//[本月应收预付] 24
                        },
                        {
                            data : 'nNowMonthYSJDKSum'//[本月应收进度] 25
                        },
                        {
                            data : 'nNowMonthYSFHKSum'//[本月应收发货] 26
                        },
                        {
                            data : 'nNowMonthYSYSKSum'//[本月应收验收] 27
                        },
                        {
                            data : 'nNowMonthYSTSKSum'//[本月应收调试] 28
                        },
                        {
                            data : 'nNowMonthYSZBKSum'//[本月应收质保] 29
                        },
                        {
                            data : 'nNowMonthYSYFSum'//[本月应收运费] 30
                        },
                        {
                            data : 'nBeforeYSYFKSum'//[前期应收预付] 31
                        },
                        {
                            data : 'nBeforeYSJDKSum'//[前期应收进度] 32
                        },
                        {
                            data : 'nBeforeYSFHKSum'//[前期应收发货] 33
                        },
                        {
                            data : 'nBeforeYSYSKSum'//[前期应收验收] 34
                        },
                        {
                            data : 'nBeforeYSTSKSum'//[前期应收调试] 35
                        },
                        {
                            data : 'nBeforeYSZBKSum'//[前期应收质保] 36
                        },
                        {
                            data : 'nBeforeYSYFSum'//[前期应收运费] 37
                        },
                        {
                            data : 'nNowMonthPayCheckSum'//[本期启票] 38
                        },
                        {
                            data : 'nEndingBalanceSum'//[期末余额] 39
                        },
                        {
                            data : 'nWQPContractEndingBalanceSum'//[未启票合同期末可收] 40
                        },
                        {
                            data : 'nYSYHKSum'//[已收预收货] 41
                        },
                        {
                            data : 'nNowMonthGetPaySum'//[本月回款额] 42
                        },
                        {
                            data : 'nWFHSKSum'//[无法收回款项] 43
                        },
                        {
                            data : 'nBeforeYearWDQYSKSum'//[上年未到期应收款] 44
                        },
                        {
                            data : 'nNowMonthContractAddSum'//[当月新增合同额] 45
                        },
                        {
                            data : 'nTax'//[税金] 46
                        },
                        {
                            data : 'nBookBalanceSum'//[账面余额] 47
                        }],
            "drawCallback": function (oSettings) {
                var k = 0;
                var total = oSettings.aiDisplay.length + oSettings._iDisplayStart;

                for (var i = oSettings._iDisplayStart, iLen = total; i < iLen; i++) {
                    $('td:eq(0)', oSettings.aoData[oSettings.aiDisplay[k]].nTr).text(i + 1);
                    k++;
                }
            }
        });
    });
    
    //查询
    jQuery('#searchBtn').on('click',function(){
    	clearQueryServerData();
    	getServerDate();
        serverData.type=jQuery('#type').val();
        serverTable.draw();
    })
    //撤销查询
    jQuery('#resetBtn').on("click",function()
    {
    	clearQueryServerData('clearui');
        serverTable.draw();
    });
    
    var getServerDate=function(){
    	if(jQuery("#cOrderUnit-search").val().trim()) serverData.cOrderUnit=jQuery("#cOrderUnit-search").val();
    	if(jQuery("#state-search").val().trim()){ 
    		if(jQuery("#state-search").val().trim()!="")
    			serverData.state=jQuery("#state-search").val();
    	}
    	
    	if(jQuery("#nTotalSum-search").val().trim()) serverData.nTotalSumStartNum=jQuery("#nTotalSum-search").val();
    	if(jQuery("#nTotalSum-end-search").val().trim()) serverData.nTotalSumEndNum=jQuery("#nTotalSum-end-search").val();

    	if(jQuery("#cProjectName-search").val().trim()) serverData.cProjectName=jQuery("#cProjectName-search").val();
    	if(jQuery("#contractType-search").val().trim()) serverData.contractType=jQuery("#contractType-search").val();
    	if(jQuery("#cSupplierCode-search").val().trim()) serverData.cSupplierCode=jQuery("#cSupplierCode-search").val();
    	if(jQuery("#cDemanderCode-search").val().trim()) serverData.cDemanderCode=jQuery("#cDemanderCode-search").val();
    	if(jQuery("#cProductKind-search").val()) serverData.cProductKind=jQuery("#cProductKind-search").val();
    	if(jQuery("#cCheckKind-search").val()) serverData.cCheckKind=jQuery("#cCheckKind-search").val();
    	if(jQuery("#cDutyOfficer-search").val()) serverData.cDutyOfficer=jQuery("#cDutyOfficer-search").val();
    	if(jQuery("#cOrderArea-search").val()) serverData.cOrderArea=jQuery("#cOrderArea-search").val();
    	if(jQuery("#cPayType-search").val()) serverData.cPayType=jQuery("#cPayType-search").val();
    	
    	if(jQuery("#dSignedDate-search").val()) serverData.dSignedDateStartDate=jQuery("#dSignedDate-search").val();
    	if(jQuery("#dSignedDate-end-search").val()) serverData.dSignedDateEndDate=jQuery("#dSignedDate-end-search").val();
    	
    	if(jQuery("#dDeliveryDate-search").val()) serverData.dDeliveryDateStartDate=jQuery("#dDeliveryDate-search").val();
    	if(jQuery("#dDeliveryDate-end-search").val()) serverData.dDeliveryDateEndDate=jQuery("#dDeliveryDate-end-search").val();
    	
    	if(jQuery("#dLateestPayCheckDate-search").val()) serverData.dLateestPayCheckDateStartDate=jQuery("#ddLateestPayCheckDate-search").val();
    	if(jQuery("#dLateestPayCheckDate-end-search").val()) serverData.dLateestPayCheckDateEndDate=jQuery("#ddLateestPayCheckDate-end-search").val();
    	
    	if(jQuery("#nWQPWDQYSSum-search").val()) serverData.nWQPWDQYSSumStartNum=jQuery("#nWQPWDQYSSum-search").val();
    	if(jQuery("#nWQPWDQYSSum-end-search").val()) serverData.nWQPWDQYSSumEndNum=jQuery("#nWQPWDQYSSum-end-search").val();

    	if(jQuery("#nYQPWDQYSSum-search").val()) serverData.nYQPWDQYSSumStartNum=jQuery("#nYQPWDQYSSum-search").val();
    	if(jQuery("#nYQPWDQYSSum-end-search").val()) serverData.nYQPWDQYSSumEndNum=jQuery("#nYQPWDQYSSum-end-search").val();

    	if(jQuery("#nWDQYSYFKSum-search").val()) serverData.nWDQYSYFKSumStartNum=jQuery("#nWDQYSYFKSum-search").val();
    	if(jQuery("#nWDQYSYFKSum-end-search").val()) serverData.nWDQYSYFKSumEndNum=jQuery("#nWDQYSYFKSum-end-search").val();

    	if(jQuery("#nWDQYSJDKSum-search").val()) serverData.nWDQYSJDKSumStartNum=jQuery("#nWDQYSJDKSum-search").val();
    	if(jQuery("#nWDQYSJDKSum-end-search").val()) serverData.nWDQYSJDKSumEndNum=jQuery("#nWDQYSJDKSum-end-search").val();

    	if(jQuery("#nWDQYSFHKSum-search").val()) serverData.nWDQYSFHKSumStartNum=jQuery("#nWDQYSFHKSum-search").val();
    	if(jQuery("#nWDQYSFHKSum-end-search").val()) serverData.nWDQYSFHKSumEndNum=jQuery("#nWDQYSFHKSum-end-search").val();

    	if(jQuery("#nWDQYSYSKSum-search").val()) serverData.nWDQYSYSKSumStartNum=jQuery("#nWDQYSYSKSum-search").val();
    	if(jQuery("#nWDQYSYSKSum-end-search").val()) serverData.nWDQYSYSKSumEndNum=jQuery("#nWDQYSYSKSum-end-search").val();

    	if(jQuery("#nWDQYSTSKSum-search").val()) serverData.nWDQYSTSKSumStartNum=jQuery("#nWDQYSTSKSum-search").val();
    	if(jQuery("#nWDQYSTSKSum-end-search").val()) serverData.nWDQYSTSKSumEndNum=jQuery("#nWDQYSTSKSum-end-search").val();

    	if(jQuery("#nWDQYSZBKSum-search").val()) serverData.nWDQYSZBKSumStartNum=jQuery("#nWDQYSZBKSum-search").val();
    	if(jQuery("#nWDQYSZBKSum-end-search").val()) serverData.nWDQYSZBKSumEndNum=jQuery("#nWDQYSZBKSum-end-search").val();

    	if(jQuery("#nWDQYSYFSum-search").val()) serverData.nWDQYSYFSumStartNum=jQuery("#nWDQYSYFSum-search").val();
    	if(jQuery("#nWDQYSYFSum-end-search").val()) serverData.nWDQYSYFSumEndNum=jQuery("#nWDQYSYFSum-end-search").val();

    	if(jQuery("#nNowMonthYSYFKSum-search").val()) serverData.nNowMonthYSYFKSumStartNum=jQuery("#nNowMonthYSYFKSum-search").val();
    	if(jQuery("#nNowMonthYSYFKSum-end-search").val()) serverData.nNowMonthYSYFKSumEndNum=jQuery("#nNowMonthYSYFKSum-end-search").val();

    	if(jQuery("#nNowMonthYSJDKSum-search").val()) serverData.nNowMonthYSJDKSumStartNum=jQuery("#nNowMonthYSJDKSum-search").val();
    	if(jQuery("#nNowMonthYSJDKSum-end-search").val()) serverData.nNowMonthYSJDKSumEndNum=jQuery("#nNowMonthYSJDKSum-end-search").val();

    	if(jQuery("#nNowMonthYSFHKSum-search").val()) serverData.nNowMonthYSFHKSumStartNum=jQuery("#nNowMonthYSFHKSum-search").val();
    	if(jQuery("#nNowMonthYSFHKSum-end-search").val()) serverData.nNowMonthYSFHKSumEndNum=jQuery("#nNowMonthYSFHKSum-end-search").val();

    	if(jQuery("#nNowMonthYSYSKSum-search").val()) serverData.nNowMonthYSYSKSumStartNum=jQuery("#nNowMonthYSYSKSum-search").val();
    	if(jQuery("#nNowMonthYSYSKSum-end-search").val()) serverData.nNowMonthYSYSKSumEndNum=jQuery("#nNowMonthYSYSKSum-end-search").val();

    	if(jQuery("#nNowMonthYSTSKSum-search").val()) serverData.nNowMonthYSTSKSumStartNum=jQuery("#nNowMonthYSTSKSum-search").val();
    	if(jQuery("#nNowMonthYSTSKSum-end-search").val()) serverData.nNowMonthYSTSKSumEndNum=jQuery("#nNowMonthYSTSKSum-end-search").val();

    	if(jQuery("#nNowMonthYSZBKSum-search").val()) serverData.nNowMonthYSZBKSumStartNum=jQuery("#nNowMonthYSZBKSum-search").val();
    	if(jQuery("#nNowMonthYSZBKSum-end-search").val()) serverData.nNowMonthYSZBKSumEndNum=jQuery("#nNowMonthYSZBKSum-end-search").val();

    	if(jQuery("#nNowMonthYSYFSum-search").val()) serverData.nNowMonthYSYFSumStartNum=jQuery("#nNowMonthYSYFSum-search").val();
    	if(jQuery("#nNowMonthYSYFSum-end-search").val()) serverData.nNowMonthYSYFSumEndNum=jQuery("#nNowMonthYSYFSum-end-search").val();

    	if(jQuery("#nBeforeYSYFKSum-search").val()) serverData.nBeforeYSYFKSumStartNum=jQuery("#nBeforeYSYFKSum-search").val();
    	if(jQuery("#nBeforeYSYFKSum-end-search").val()) serverData.nBeforeYSYFKSumEndNum=jQuery("#nBeforeYSYFKSum-end-search").val();

    	if(jQuery("#nBeforeYSJDKSum-search").val()) serverData.nBeforeYSJDKSumStartNum=jQuery("#nBeforeYSJDKSum-search").val();
    	if(jQuery("#nBeforeYSJDKSum-end-search").val()) serverData.nBeforeYSJDKSumEndNum=jQuery("#nBeforeYSJDKSum-end-search").val();

    	if(jQuery("#nBeforeYSFHKSum-search").val()) serverData.nBeforeYSFHKSumStartNum=jQuery("#nBeforeYSFHKSum-search").val();
    	if(jQuery("#nBeforeYSFHKSum-end-search").val()) serverData.nBeforeYSFHKSumEndNum=jQuery("#nBeforeYSFHKSum-end-search").val();

    	if(jQuery("#nBeforeYSYSKSum-search").val()) serverData.nBeforeYSYSKSumStartNum=jQuery("#nBeforeYSYSKSum-search").val();
    	if(jQuery("#nBeforeYSYSKSum-end-search").val()) serverData.nBeforeYSYSKSumEndNum=jQuery("#nBeforeYSYSKSum-end-search").val();

    	if(jQuery("#nBeforeYSTSKSum-search").val()) serverData.nBeforeYSTSKSumStartNum=jQuery("#nBeforeYSTSKSum-search").val();
    	if(jQuery("#nBeforeYSTSKSum-end-search").val()) serverData.nBeforeYSTSKSumEndNum=jQuery("#nBeforeYSTSKSum-end-search").val();

    	if(jQuery("#nBeforeYSZBKSum-search").val()) serverData.nBeforeYSZBKSumStartNum=jQuery("#nBeforeYSZBKSum-search").val();
    	if(jQuery("#nBeforeYSZBKSum-end-search").val()) serverData.nBeforeYSZBKSumEndNum=jQuery("#nBeforeYSZBKSum-end-search").val();

    	if(jQuery("#nBeforeYSYFSum-search").val()) serverData.nBeforeYSYFSumStartNum=jQuery("#nBeforeYSYFSum-search").val();
    	if(jQuery("#nBeforeYSYFSum-end-search").val()) serverData.nBeforeYSYFSumEndNum=jQuery("#nBeforeYSYFSum-end-search").val();

    	if(jQuery("#nNowMonthPayCheckSum-search").val()) serverData.nNowMonthPayCheckSumStartNum=jQuery("#nNowMonthPayCheckSum-search").val();
    	if(jQuery("#nNowMonthPayCheckSum-end-search").val()) serverData.nNowMonthPayCheckSumEndNum=jQuery("#nNowMonthPayCheckSum-end-search").val();

    	if(jQuery("#nEndingBalanceSum-search").val()) serverData.nEndingBalanceSumStartNum=jQuery("#nEndingBalanceSum-search").val();
    	if(jQuery("#nEndingBalanceSum-end-search").val()) serverData.nEndingBalanceSumEndNum=jQuery("#nEndingBalanceSum-end-search").val();

    	if(jQuery("#nWQPContractEndingBalanceSum-search").val()) serverData.nWQPContractEndingBalanceSumStartNum=jQuery("#nWQPContractEndingBalanceSum-search").val();
    	if(jQuery("#nWQPContractEndingBalanceSum-end-search").val()) serverData.nWQPContractEndingBalanceSumEndNum=jQuery("#nWQPContractEndingBalanceSum-end-search").val();

    	if(jQuery("#nYSYHKSum-search").val()) serverData.nYSYHKSumStartNum=jQuery("#nYSYHKSum-search").val();
    	if(jQuery("#nYSYHKSum-end-search").val()) serverData.nYSYHKSumEndNum=jQuery("#nYSYHKSum-end-search").val();

    	if(jQuery("#nNowMonthGetPaySum-search").val()) serverData.nNowMonthGetPaySumStartNum=jQuery("#nNowMonthGetPaySum-search").val();
    	if(jQuery("#nNowMonthGetPaySum-end-search").val()) serverData.nNowMonthGetPaySumEndNum=jQuery("#nNowMonthGetPaySum-end-search").val();

    	if(jQuery("#nWFHSKSum-search").val()) serverData.nWFHSKSumStartNum=jQuery("#nWFHSKSum-search").val();
    	if(jQuery("#nWFHSKSum-end-search").val()) serverData.nWFHSKSumEndNum=jQuery("#nWFHSKSum-end-search").val();

    	if(jQuery("#nBeforeYearWDQYSKSum-search").val()) serverData.nBeforeYearWDQYSKSumStartNum=jQuery("#nBeforeYearWDQYSKSum-search").val();
    	if(jQuery("#nBeforeYearWDQYSKSum-end-search").val()) serverData.nBeforeYearWDQYSKSumEndNum=jQuery("#nBeforeYearWDQYSKSum-end-search").val();

    	if(jQuery("#nNowMonthContractAddSum-search").val()) serverData.nNowMonthContractAddSumStartNum=jQuery("#nNowMonthContractAddSum-search").val();
    	if(jQuery("#nNowMonthContractAddSum-end-search").val()) serverData.nNowMonthContractAddSumEndNum=jQuery("#nNowMonthContractAddSum-end-search").val();

    	if(jQuery("#nTax-search").val()) serverData.nTaxStartNum=jQuery("#nTax-search").val();
    	if(jQuery("#nTax-end-search").val()) serverData.nTaxEndNum=jQuery("#nTax-end-search").val();

    	if(jQuery("#nBookBalanceSum-search").val()) serverData.nBookBalanceSumStartNum=jQuery("#nBookBalanceSum-search").val();
    	if(jQuery("#nBookBalanceSum-end-search").val()) serverData.nBookBalanceSumEndNum=jQuery("#nBookBalanceSum-end-search").val();
    };
    
    var clearQueryServerData=function(option){
    	if(option=='clearui'){
    		 jQuery('input').val('');
             jQuery('select').val('');
    	}
    	if(serverData.cOrderUnit) serverData.cOrderUnit=null;
    	if(serverData.state) serverData.state=null;
    	
    	if(serverData.nTotalSumStartNum) serverData.nTotalSumStartNum=null;
    	if(serverData.nTotalSumEndNum) serverData.nTotalSumEndNum=null;
    	
    	if(serverData.cProjectName) serverData.cProjectName=null;
    	if(serverData.contractType) serverData.contractType=null;
    	if(serverData.cSupplierCode) serverData.cSupplierCode=null;
    	if(serverData.cDemanderCode) serverData.cDemanderCode=null;
    	if(serverData.cProductKind) serverData.cProductKind=null;
    	if(serverData.cCheckKind) serverData.cCheckKind=null;
    	if(serverData.cDutyOfficer) serverData.cDutyOfficer=null;
    	if(serverData.cOrderArea) serverData.cOrderArea=null;
    	if(serverData.cPayType) serverData.cPayType=null;
    	
    	if(serverData.dSignedDateStartDate) serverData.dSignedDateStartDate=null;
    	if(serverData.dSignedDateendEndDate) serverData.dSignedDateendEndDate=null;
    	
    	if(serverData.dDeliveryDateStartDate) serverData.dDeliveryDateStartDate=null;
    	if(serverData.dDeliveryDateendEndDate) serverData.dDeliveryDateendEndDate=null;

    	if(serverData.dLateestPayCheckDateStartDate) serverData.dLateestPayCheckDateStartDate=null;
    	if(serverData.dLateestPayCheckDateendEndDate) serverData.dLateestPayCheckDateendEndDate=null;

    	if(serverData.nWQPWDQYSSumStartNum) serverData.nWQPWDQYSSumStartNum=null;
    	if(serverData.nWQPWDQYSSumEndNum) serverData.nWQPWDQYSSumEnd=null;

    	if(serverData.nYQPWDQYSSumStartNum) serverData.nYQPWDQYSSumStartNum=null;
    	if(serverData.nYQPWDQYSSumEndNum) serverData.nYQPWDQYSSumEnd=null;

    	if(serverData.nWDQYSYFKSumStartNum) serverData.nWDQYSYFKSumStartNum=null;
    	if(serverData.nWDQYSYFKSumEndNum) serverData.nWDQYSYFKSumEndNum=null;

    	if(serverData.nWDQYSJDKSumStartNum) serverData.nWDQYSJDKSumStartNum=null;
    	if(serverData.nWDQYSJDKSumEndNum) serverData.nWDQYSJDKSumEndNum=null;

    	if(serverData.nWDQYSFHKSumStartNum) serverData.nWDQYSFHKSumStartNum=null;
    	if(serverData.nWDQYSFHKSumEndNum) serverData.nWDQYSFHKSumEndNum=null;

    	if(serverData.nWDQYSYSKSumStartNum) serverData.nWDQYSYSKSumStartNum=null;
    	if(serverData.nWDQYSYSKSumEndNum) serverData.nWDQYSYSKSumEndNum=null;

    	if(serverData.nWDQYSTSKSumStartNum) serverData.nWDQYSTSKSumStartNum=null;
    	if(serverData.nWDQYSTSKSumEndNum) serverData.nWDQYSTSKSumEndNum=null;

    	if(serverData.nWDQYSZBKSumStartNum) serverData.nWDQYSZBKSumStartNum=null;
    	if(serverData.nWDQYSZBKSumEndNum) serverData.nWDQYSZBKSumEndNum=null;

    	if(serverData.nWDQYSYFSumStartNum) serverData.nWDQYSYFSumStartNum=null;
    	if(serverData.nWDQYSYFSumEndNum) serverData.nWDQYSYFSumEndNum=null;

    	if(serverData.nNowMonthYSYFKSumStartNum) serverData.nNowMonthYSYFKSumStartNum=null;
    	if(serverData.nNowMonthYSYFKSumEndNum) serverData.nNowMonthYSYFKSumEndNum=null;

    	if(serverData.nNowMonthYSJDKSumStartNum) serverData.nNowMonthYSJDKSumStartNum=null;
    	if(serverData.nNowMonthYSJDKSumEndNum) serverData.nNowMonthYSJDKSumEndNum=null;

    	if(serverData.nNowMonthYSFHKSumStartNum) serverData.nNowMonthYSFHKSumStartNum=null;
    	if(serverData.nNowMonthYSFHKSumEndNum) serverData.nNowMonthYSFHKSumEndNum=null;

    	if(serverData.nNowMonthYSYSKSumStartNum) serverData.nNowMonthYSYSKSumStartNum=null;
    	if(serverData.nNowMonthYSYSKSumEndNum) serverData.nNowMonthYSYSKSumEndNum=null;
    	
    	if(serverData.nNowMonthYSTSKSumStartNum) serverData.nNowMonthYSTSKSumStartNum=null;
    	if(serverData.nNowMonthYSTSKSumEndNum) serverData.nNowMonthYSTSKSumEndNum=null;

    	if(serverData.nNowMonthYSZBKSumStartNum) serverData.nNowMonthYSZBKSumStartNum=null;
    	if(serverData.nNowMonthYSZBKSumEndNum) serverData.nNowMonthYSZBKSumEndNum=null;

    	if(serverData.nNowMonthYSYFSumStartNum) serverData.nNowMonthYSYFSumStartNum=null;
    	if(serverData.nNowMonthYSYFSumEndNum) serverData.nNowMonthYSYFSumEndNum=null;

    	if(serverData.nBeforeYSYFKSumStartNum) serverData.nBeforeYSYFKSumStartNum=null;
    	if(serverData.nBeforeYSYFKSumEndNum) serverData.nBeforeYSYFKSumEndNum=null;

    	if(serverData.nBeforeYSJDKSumStartNum) serverData.nBeforeYSJDKSumStartNum=null;
    	if(serverData.nBeforeYSJDKSumEndNum) serverData.nBeforeYSJDKSumEndNum=null;

    	if(serverData.nBeforeYSFHKSumStartNum) serverData.nBeforeYSFHKSumStartNum=null;
    	if(serverData.nBeforeYSFHKSumEndNum) serverData.nBeforeYSFHKSumEndNum=null;

    	if(serverData.nBeforeYSYSKSumStartNum) serverData.nBeforeYSYSKSumStartNum=null;
    	if(serverData.nBeforeYSYSKSumEndNum) serverData.nBeforeYSYSKSumEndNum=null;

    	if(serverData.nBeforeYSTSKSumStartNum) serverData.nBeforeYSTSKSumStartNum=null;
    	if(serverData.nBeforeYSTSKSumEndNum) serverData.nBeforeYSTSKSumEndNum=null;

    	if(serverData.nBeforeYSZBKSumStartNum) serverData.nBeforeYSZBKSumStartNum=null;
    	if(serverData.nBeforeYSZBKSumEndNum) serverData.nBeforeYSZBKSumEndNum=null;

    	if(serverData.nBeforeYSYFSumStartNum) serverData.nBeforeYSYFSumStartNum=null;
    	if(serverData.nBeforeYSYFSumEndNum) serverData.nBeforeYSYFSumEndNum=null;

    	if(serverData.nNowMonthPayCheckSumStartNum) serverData.nNowMonthPayCheckSumStartNum=null;
    	if(serverData.nNowMonthPayCheckSumEndNum) serverData.nNowMonthPayCheckSumEndNum=null;

    	if(serverData.nEndingBalanceSumStartNum) serverData.nEndingBalanceSumStartNum=null;
    	if(serverData.nEndingBalanceSumEndNum) serverData.nEndingBalanceSumEndNum=null;

    	if(serverData.nWQPContractEndingBalanceSumStartNum) serverData.nWQPContractEndingBalanceSumStartNum=null;
    	if(serverData.nWQPContractEndingBalanceSumEndNum) serverData.nWQPContractEndingBalanceSumEndNum=null;

    	if(serverData.nYSYHKSumStartNum) serverData.nYSYHKSumStartNum=null;
    	if(serverData.nYSYHKSumEndNum) serverData.nYSYHKSumEndNum=null;

    	if(serverData.nNowMonthGetPaySumStartNum) serverData.nNowMonthGetPaySumStartNum=null;
    	if(serverData.nNowMonthGetPaySumEndNum) serverData.nNowMonthGetPaySumEndNum=null;

    	if(serverData.nWFHSKSumStartNum) serverData.nWFHSKSumStartNum=null;
    	if(serverData.nWFHSKSumEndNum) serverData.nWFHSKSumEndNum=null;

    	if(serverData.nBeforeYearWDQYSKSumStartNum) serverData.nBeforeYearWDQYSKSumStartNum=null;
    	if(serverData.nBeforeYearWDQYSKSumEndNum) serverData.nBeforeYearWDQYSKSumEndNum=null;

    	if(serverData.nNowMonthContractAddSumStartNum) serverData.nNowMonthContractAddSumStartNum=null;
    	if(serverData.nNowMonthContractAddSumEndNum) serverData.nNowMonthContractAddSumEndNum=null;

    	if(serverData.nTaxStartNum) serverData.nTaxStartNum=null;
    	if(serverData.nTaxEndNum) serverData.nTaxEndNum=null;

    	if(serverData.nBookBalanceSumStartNum) serverData.nBookBalanceSumStartNum=null;
    	if(serverData.nBookBalanceSumEndNum) serverData.nBookBalanceSumEndNum=null;
    };
    
})();